home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / amigaoscd / amigapluscd / AP-Website / links / index.php < prev    next >
PHP Script  |  2001-07-22  |  3KB  |  119 lines

  1. <?
  2. // *******************************************************************
  3. //  index.php
  4. // *******************************************************************
  5.  
  6. include("include/config.php");
  7. include("include/functions.php");
  8. include("include/common.php");
  9.  
  10. include("include/session.php");
  11. session_start();
  12.  
  13. $language = $gl["Language"];
  14.  
  15. include("include/lang/$language.php");
  16.  
  17. $theme = $gl["Theme"];
  18.  
  19. include("themes/$theme/tables.php");
  20.  
  21. $style = "netscape";
  22.  
  23. if(strstr($HTTP_USER_AGENT, "MSIE")){
  24.     $style = "style";
  25. }
  26.  
  27. ?>
  28.  
  29. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  30. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  31. <html>
  32. <head>
  33.     <meta
  34.         name    =   "keywords"
  35.         content =   "phplinks,php,mysql,free,links,search engine,
  36.                     index,search index,keyword,results,meta data,
  37.                     script"
  38.     />
  39.     <meta
  40.         name    =   "description"
  41.         content =   "phplinks is a free php script for use with 
  42.                     mysql. phplinks is a search engine, link farm 
  43.                     script. phplinks is free for download."
  44.     />
  45.     <meta
  46.         name    =   "robots"
  47.         content =   "all"
  48.     />
  49.     <!--
  50.         phplinks is a free php script for use with mysql.  phplinks
  51.         is a search engine or link farm script. phplinks is free for
  52.         download php script.
  53.     -->
  54.     <!--
  55.         phplinks,php,mysql,free,links,search engine,index,search
  56.         index,keyword,results,meta data,script
  57.     -->
  58.     <title>
  59.         <?=$gl[SiteTitle]?>
  60.         <?
  61.         if($SERVER_NAME == "phplinks.org"){
  62.             echo " is a free php script for use with mysql. phplinks is a ";
  63.             echo "search engine script. phplinks free for download.";
  64.         }
  65.         ?>
  66.     </title>
  67.     <link
  68.         rel     =   "stylesheet"
  69.         type    =   "text/css"
  70.         href    =   "themes/<?=$theme?>/<?=$style?>.css"
  71.     />
  72. </head>
  73.  
  74. <body bgcolor="white"><?
  75.  
  76. include("themes/$theme/header.php");
  77. include("themes/$theme/navbar.top.php");
  78.  
  79. if(isset($term)){
  80.     
  81.     include("include/results.php");
  82.     include("include/related.php");
  83. }
  84.  
  85. if(isset($show)){
  86.     
  87.     if($show == "new" || $show == "pop" || $show == "cool"){   
  88.         
  89.         include("include/show.php"); 
  90.     } else {     
  91.         
  92.         include("include/$show.php");
  93.     }
  94. }
  95.  
  96. if(!isset($term) and !isset($show)){
  97.     
  98.     if(!isset($PID)){   
  99.         
  100.         $PID=0;
  101.         include("include/main.cats.php");
  102.     } else {
  103.         
  104.         include("include/line.cat.php");
  105.         include("include/main.cats.php");
  106.         include("include/sites.php");
  107.         include("include/related.php");
  108.     }
  109. }
  110.  
  111. include("themes/$theme/navbar.bottom.php");
  112. include("themes/$theme/footer.php");
  113.  
  114. ?>
  115.  
  116. </body>
  117. </html>
  118.  
  119.